package com.trip.wechat.platform.model.message;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.MoreObjects;

import java.util.Map;

/**
 * 功能说明: 模板消息<br>
 * 系统说明: <br>
 * 模块说明: <br>
 * 功能描述: <br>
 */
public class TemplateMessageBO {

    @JsonProperty(value = "touser")
    private String toUser ;
    @JsonProperty(value = "template_id")
    private String templateId;
    @JsonProperty(value = "url")
    private String url;
    @JsonProperty(value = "topcolor")
    private String topColor ;
    @JsonProperty(value = "data")
    private Map<String, TemplateData> data;

    public String getToUser() {
        return toUser;
    }

    public void setToUser(String toUser) {
        this.toUser = toUser;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getTopColor() {
        return topColor;
    }

    public void setTopColor(String topColor) {
        this.topColor = topColor;
    }

    public Map<String, TemplateData> getData() {
        return data;
    }

    public void setData(Map<String, TemplateData> data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return MoreObjects.toStringHelper(this)
                .add("toUser", toUser)
                .add("templateId", templateId)
                .add("url", url)
                .add("topColor", topColor)
                .add("data", data)
                .toString();
    }
}
